﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsManualMeasureReport")]
    public class MsManualMeasureReport
    {
        public enum ManualReportStatus
        { 录入 = 0, 生成报告中 = 1, 生成完成 = 2, 重新生成 = 3 }

        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid TaskId { get; set; }

        [Key]
        [Column(TypeName = "int4")]
        public int PointIndex { get; set; }

        [Required]
        [Column(TypeName = "int2")]
        public ManualReportStatus ReportStatus { get; set; }

        [Column(TypeName = "varchar(255)")]
        public string ReportErrMsg { get; set; }

        [Column(TypeName = "timestamp")]
        public DateTime CreatedDate { get; set; }

        [Column(TypeName = "timestamp")]
        public DateTime? UpdatedDate { get; set; }
    }
}